import  request  from "@/http/request.js";

export function selectTravelList(data){
    return request({
        url:'/travel/selectTravelList',
        method:'post',
        data
    })
}

export function insertTravel(data){
    return request({
        url:'/travel/insertTravel',
        method:'post',
        data
    })
}

export function selectTravelDetail(data){
    return request({
        url:"/travel/selectTravelDetail?travelId="+data,
        method:"get"
    })
}

export function updateTravelDetail(data){
    return request({
        url:"/travel/updateTravelDetail",
        method:'post',
        data
    })
}

export function deleteTravel(data){
    return request({
        url:"/travel/deleteTravel?travelId="+data,
        method:'get'
    })
}